for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
// NegativeArraySizeException.js
"use strict";
// :: DEPENDENCIES
// load native dependencies
const path = require("path");
// load local dependencies
const RuntimeException = require(path.join(__dirname, "RuntimeException.js"));
// :: BASIC SETUP
/**
* Thrown if an application tries to create an array with negative size.
* @param {String} message - The message describing the <tt>NegativeArraySizeException</tt>.
* @param {Number} code - The unique code that identifies the cause of the <tt>NegativeArraySizeException</tt>.
* @augments RuntimeException
* @constructor
* @see https://docs.oracle.com/javase/8/docs/api/java/lang/NegativeArraySizeException.html
*/
const NegativeArraySizeException = function (message, code) {
RuntimeException.call(this, null, message, code);
};
// :: INHERITANCE
// set the RuntimeException 'class' as the parent in the prototype chain
NegativeArraySizeException.prototype = Object.create(RuntimeException.prototype);
NegativeArraySizeException.prototype.constructor = RuntimeException;
// :: PROTOTYPE
* The name used to identify an <tt>NegativeArraySizeException</tt>.
* @type {String}
* @default
NegativeArraySizeException.prototype.name = "NegativeArraySizeException";
// :: EXPORT
// export the NegativeArraySizeException 'class'
module.exports = NegativeArraySizeException;